home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 30
/
PC Gamer IT CD 30 1-2.iso
/
MOTS
/
GAMEDATA
/
RESOURCE
/
JKMRES.GOO
/
cog_00_carbstatue.cog
< prev
next >
Wrap
Text File
|
1998-02-25
|
791b
|
51 lines
# Jedi Knight Missions Cog Script
#
# 00_CARBSTATUE.COG
#
# Frozen carbonite statue cog.
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
flags=0x240
symbols
message created
message pulse
message timer
message removed
thing aThing;
end
code
created:
SetThingPulse(GetSenderRef(), 0.5);
SetTimerEx(10.0, 1234, GetSenderRef(), 0);
return;
pulse:
if (GetThingUserData(GetSenderRef()) >= 5000)
{
aThing = GetThingUserData(GetSenderRef()) - 5000;
SetThingPosEx(GetSenderRef(), GetThingPos(aThing), GetThingSector(aThing));
}
return;
timer:
if (GetSenderID() == 1234)
{
SetThingPulse(GetParam(0), 0.0);
DestroyThing(GetParam(0));
}
return;
removed:
SetThingPulse(GetSenderRef(), 0.0);
return;
end